﻿@{
    ViewBag.Title = "课程";
    Layout = "~/Views/Shared/_Layout.cshtml";
    List<LeEdu.Entity.Course> courses = ViewBag.Courses as List<LeEdu.Entity.Course>;
}

<head>
    <title></title>
     
    <link href="~/assets/font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/assets/plupload/jquery.plupload.queue/css/jquery.plupload.queue.css" rel="stylesheet" />
    <script src="~/assets/plupload/plupload.full.min.js"></script>
    <script src="~/assets/plupload/jquery.plupload.queue/jquery.plupload.queue.min.js"></script>
    <script src="~/assets/plupload/i18n/zh_CN.js"></script>
    <script src="~/assets/esimakin-twbs-pagination/jquery.twbsPagination.min.js"></script>
</head>
<body>   
       
    <div class="page-header clearfix">
        <h4 class="pull-left">课程列表</h4>            
    </div>       
    
    @for (int i = 0; i < courses.Count; i++)
    {
        <div style="display:inline-block;width:150px;height:150px;">
            <a href="@Url.Action("StudyCourse", "Home", new { cid=courses[i].Id})">
                <img src="@courses[i].ImgUrl" alt="课程封面" width="120" height="120">

                <div>
                    <div>
                        @courses[i].Name
                    </div>
                    <div>
                        @courses[i].Description
                    </div>
                    <div>
                        <span>@courses[i].CreateTime</span>
                    </div>
                </div>
            </a>
        </div>


    }

</body>